/*
 * BangoPoster.h
 *
 *  Created on: 27 Dec 2012
 *      Author: sonya
 */

#ifndef BANGOPOSTER_H_
#define BANGOPOSTER_H_


#include "BangoLogger.h"
#include "BangoStorage.h"
#include <QObject>
#include <QThread>
#include <QTimer>

class BangoPoster : public QObject
{

	Q_OBJECT


private:
	BangoLogger *_bangoLogger;
	bool _notCurrentProfile;
	bool _closeDatabase;

public:

	BangoPoster(QObject *parent = 0);
	BangoPoster(BangoLogger * logger, bool notCurrentProfile, bool closeDatabase);
	~BangoPoster();

	void Post();

public slots:

	void PostEvents();

signals:
	void finished();
	void error(QString err);
};


#endif /* BANGOPOSTER_H_ */
